package cn.topkinson.es.etl.controller;

import cn.topkinson.es.etl.service.MainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author huangzihao
 * @Date 2021/1/22 20:41
 */

@RestController
@RequestMapping("/")
public class ActionController {

    @Autowired
    private MainService mainService;

    @GetMapping("action")
    public void action(){
        mainService.etl();
    }
}
